home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / bash_completion.d / gnatmake < prev    next >
Text File  |  2009-04-02  |  1KB  |  33 lines

  1. # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
  2. # ex: ts=8 sw=8 noet filetype=sh
  3. #
  4. # Gnatmake completion by Ralf_Schroth@t-online.de (Ralf Schroth)
  5.  
  6. _gnatmake()
  7. {
  8.     local cur
  9.  
  10.     COMPREPLY=()
  11.     cur=`_get_cword`
  12.  
  13.         if [[ "$cur" == -* ]]; then
  14.         # relevant (and less relevant ;-) )options completion
  15.         COMPREPLY=( $( compgen -W '-a -c -f -i -j -k -m -M -n -o \
  16.                                -q -s -v -z -aL -A -aO -aI -I -I- -L -nostdinc \
  17.                                -nostdlib -cargs -bargs -largs -fstack-check \
  18.                                -fno-inline -g -O1 -O0 -O2 -O3 -gnata -gnatA \
  19.                                -gnatb -gnatc -gnatd -gnatD -gnate -gnatE \
  20.                                -gnatf -gnatF -gnatg -gnatG -gnath -gnati \
  21.                                -gnatk -gnatl -gnatL -gnatm -gnatn -gnato \
  22.                                -gnatO -gnatp -gnatP -gnatq -gnatR -gnats \
  23.                                -gnatt -gnatT -gnatu -gnatU -gnatv -gnatws \
  24.                                -gnatwe -gnatwl -gnatwu -gnatW -gnatx -gnatX \
  25.                                -gnaty -gnatz -gnatZ -gnat83' -- $cur ) )
  26.     else
  27.             # source file completion
  28.             _filedir '@(adb|ads)'
  29.           
  30.     fi
  31. }
  32. complete -F _gnatmake -o filenames gnatmake
  33.